package br.com.treinamento.gestaoExperienciaProfissional.util;

import java.nio.charset.Charset;

import com.google.common.base.Preconditions;
import com.google.common.hash.Hashing;

public final class StringUtil {

	private StringUtil() {}
	
	public static String getMD5(String value) {
		Preconditions.checkArgument(value != null, "Value nulo ou vazio");
		return Hashing.md5().hashString(value, Charset.defaultCharset()).toString();
	}

}
